<?php
/**
 * Created by PhpStorm.
 * User: lihao
 * Date: 2017/7/25
 * Time: 下午6:08
 */

class User extends MY_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->model('Project_model');
        $this->load->model('User_model');
    }

    public function uid($uid) {
        $users = $this->User_model->search(null, $uid, null, null);
        $re = $this->Project_model->getlist(null, null, null);
        $this->load->view('user', array(
            'user'=>$users[0],
            'projects'=>$re
        ));
    }
}